package com.elai.tags.domain;

import com.elai.common.annotation.Excel;
import com.elai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 概览组件对象 base_portrait_template_items
 * 
 * @author elai
 * @date 2021-10-09
 */
public class BasePortraitTemplateItems extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 页面ID */
    @Excel(name = "页面ID")
    private Long templateId;

    /** 组件名称 */
    @Excel(name = "组件名称")
    private String componentName;

    /** 分析类型 */
    @Excel(name = "分析类型")
    private String analyticsType;

    /** 时间粒度 */
    @Excel(name = "时间粒度")
    private String dateUnit;

    /** 图表类型 */
    @Excel(name = "图表类型")
    private String chartType;

    /** 查询参数 */
    @Excel(name = "查询参数")
    private String queryRule;

    /** 排序 */
    @Excel(name = "排序")
    private Long sortNo;

    /** 参数1 */
    @Excel(name = "参数1")
    private String paramField1;

    /** 参数2 */
    @Excel(name = "参数2")
    private String paramField2;

    private List<Object> xdata;
    private List<Object> ydata;
    private List<Object> zdata;

    public List<Object> getZdata() {
        return zdata;
    }

    public void setZdata(List<Object> zdata) {
        this.zdata = zdata;
    }

    public List<Object> getXdata() {
        return xdata;
    }

    public void setXdata(List<Object> xdata) {
        this.xdata = xdata;
    }

    public List<Object> getYdata() {
        return ydata;
    }

    public void setYdata(List<Object> ydata) {
        this.ydata = ydata;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }
    public void setComponentName(String componentName) 
    {
        this.componentName = componentName;
    }

    public String getComponentName() 
    {
        return componentName;
    }
    public void setAnalyticsType(String analyticsType) 
    {
        this.analyticsType = analyticsType;
    }

    public String getAnalyticsType() 
    {
        return analyticsType;
    }
    public void setDateUnit(String dateUnit) 
    {
        this.dateUnit = dateUnit;
    }

    public String getDateUnit() 
    {
        return dateUnit;
    }
    public void setChartType(String chartType) 
    {
        this.chartType = chartType;
    }

    public String getChartType() 
    {
        return chartType;
    }
    public void setQueryRule(String queryRule) 
    {
        this.queryRule = queryRule;
    }

    public String getQueryRule() 
    {
        return queryRule;
    }
    public void setSortNo(Long sortNo) 
    {
        this.sortNo = sortNo;
    }

    public Long getSortNo() 
    {
        return sortNo;
    }
    public void setParamField1(String paramField1) 
    {
        this.paramField1 = paramField1;
    }

    public String getParamField1() 
    {
        return paramField1;
    }
    public void setParamField2(String paramField2) 
    {
        this.paramField2 = paramField2;
    }

    public String getParamField2() 
    {
        return paramField2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("templateId", getTemplateId())
            .append("componentName", getComponentName())
            .append("analyticsType", getAnalyticsType())
            .append("remark", getRemark())
            .append("dateUnit", getDateUnit())
            .append("chartType", getChartType())
            .append("queryRule", getQueryRule())
            .append("sortNo", getSortNo())
            .append("paramField1", getParamField1())
            .append("paramField2", getParamField2())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
